package vn.edu.hut.soict.translate.transform.utils;

public class NounTransformUtils extends WordTransformUtils {

	public static String fixArticleAgree(String noun, String article) {
		if (noun == null || noun.isEmpty()) {
			return article;
		}
		if (article.equalsIgnoreCase("a") && WordTransformUtils.startsWithAVowel(noun)) {
			return "an";
		}
		if (article.equalsIgnoreCase("an") && !WordTransformUtils.startsWithAVowel(noun)) {
			return "a";
		}
		return article;
	}
}
